package com.gmcc.docmanager;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.ListView;

import com.gmcc.docmanager.FileListviewAdapter.FileListviewAdapterListener;
import com.gmcc.docmanager.app.PhoneGlobal;
import com.gmcc.docmanager.db.RecommendHelper;
import com.gmcc.docmanager.entity.DocumentFile;

public class MyBorrowAactivity extends Activity{
	private Context mContext = null;
	private ListView mListView = null;
	private FileListviewAdapter adapter = null;
	private List<DocumentFile> documentFiles = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_listview_file);
		this.mContext = this;
		mListView = (ListView)findViewById(R.id.listView_file);
		//documentFiles = new ArrayList<DocumentFile>();
		adapter = new FileListviewAdapter(mContext, documentFiles, listener);
		mListView.setAdapter(adapter);
	}
	@Override
	protected void onResume(){
		super.onResume();
	}
	
	private FileListviewAdapterListener listener = new FileListviewAdapterListener() {
		
		@Override
		public void onRecommendClick(int position) {
			// TODO Auto-generated method stub
			
		}
		
		@Override
		public void onReadClick(int position) {
			// TODO Auto-generated method stub
			
		}
		
		@Override
		public void onDownClick(int position) {
			// TODO Auto-generated method stub
			
		}
		
		@Override
		public void onDeleteClick(int position) {
			// TODO Auto-generated method stub

		}
		
		@Override
		public void OnApplyCilck(int position) {
			// TODO Auto-generated method stub
			
		}
	};
}
